package com.kifas.utils;

import com.kifas.model.helper.HashHelper;


public class PasswordHelper {

	public static String getPassword(String password) {
		try {
			return getPasswordHash(password);
		} catch (Exception e) {
			return null;
		}
	}

	private static String getPasswordHash(String password) throws Exception {
		HashHelper helper = new HashHelper();
		for(int i = 0 ; i < password.length(); i++) {
			helper.appendInput(String.valueOf(password.charAt(i)));
		}
		return helper.getHash();
	}
	
	
}
